package com.Design.FactoryPattern.Shape;

import com.Design.FactoryPattern.impl.Shape;

public class Factory  {
    public Shape getShape(String shape){
        if(shape==null){
            return null;
        } else if(shape.equals("Circle")){
            return new Circle();
        }else if(shape.equals("Square")){
            return new Square();
        }
        return null;
    }
}
